<style type="text/css">
    .uploadify-button {
        left: 0;
        width: 85px;
        height: 28px;
        background-repeat: no-repeat;
        border: none;
        padding: 0;
    }

    .uploadify:hover .uploadify-button {
        background-repeat: no-repeat;
        width: 85px;
        height: 28px;
    }

    .fileQueue {
        background-color: #F4F9FF;
        height: 55px;
        overflow: auto;
        width: 70%;
    }
</style>
<script type="text/javascript">
    var bghtfkfs = {
        grid: null,
        newRow: function () {
            bghtfkfs.grid.edatagrid("saveRow");
            var rows = bghtfkfs.grid.edatagrid("getRows");
            var month = 0;
            var sum = bghtfkfs.accounts() > 100 ? 100 : bghtfkfs.accounts();
            if (rows.length != 0)
                month = parseInt(rows[rows.length - 1].fksj) + 1;
            bghtfkfs.grid.edatagrid("appendRow", {
                fksj: month,
                fkbl: (100 - sum)
            });
        },
        accounts: function () {
            var rows = bghtfkfs.grid.edatagrid("getRows");
            var sum = 0;
            for (var i = 0; i < rows.length; i++) {
                if (rows[i]['fkbl'])
                    sum += parseFloat(rows[i]['fkbl']);
            }
            return sum;
        },
        deleteR: function () {
            var row = bghtfkfs.grid.edatagrid("getSelected");
            if (row) {
                var index = bghtfkfs.grid.edatagrid("getRowIndex", row);
                bghtfkfs.grid.edatagrid("deleteRow", index);
            }
        },
        init541: function () {
            bghtfkfs.grid.edatagrid("loadData", {
                total: 3,
                rows: [
                    {
                        fksj: 1,
                        fkbl: 50
                    },
                    {
                        fksj: 9,
                        fkbl: 40
                    },
                    {
                        fksj: 13,
                        fkbl: 10
                    }
                ]
            });
        },
        valid: function () {
            var sum = bghtfkfs.accounts();
            return sum == 100;
        }
    };
    $(function () {
        bghtfkfs.grid = $("#bght-fkfsedit").edatagrid({
            url: $.webPath() + "/htgl/bghtgl/bght_fkfsList?bghtId=" + $("[name='bght.id']").val(),
            singleSelect: true,
            toolbar: "#bght-fkfsedit-toolbar",
            fit: true,
            fitColumns: true,
            columns: [
                [
                    {field: "fksj", title: "发票进账后几个月应付", width: 700, editor: {type: 'numberbox', options: {required: true, min: 0}}},
                    {field: "fkbl", title: "比例(%)", width: 324, editor: {type: 'numberbox', options: {required: true, precision: 4, min: 0.1, max: 100}}}
                ]
            ]
        });
//            if( null != $("#bght_zt_id").val && $("#bght_zt_id").val() == "ybc"){
//                document.getElementById("bght-fkfsedit-toolbar").style.display="";
        $("#bght-fkfsedit_tj").click(function () {
            bghtfkfs.newRow();
        });
        $("#bght-fkfsedit_sc").click(function () {
            bghtfkfs.deleteR();
        });
        $("#bght-fkfsedit_541").click(function () {
            bghtfkfs.init541();
        });
//            }else{
//                document.getElementById("bght-fkfsedit-toolbar").style.display="none";
//            }
    });
</script>

<script type="text/javascript" src="${base}/scripts/htgl/bghtcontent.js"></script>
<form id="bghtglForm" action="" method="post" class="easyui-tabs" fit="true" style="height: 100%">
<input name="bght.id" type="hidden" value="${(bght.id)!''}"/>
<input name="bght.sfdrbght" type="hidden" value="<#if bght??&& bght.sfdrbght=true>true<#elseif bght??&& bght.sfdrbght=false>false<#else>false</#if>"/>
<input id="bght_zt_id" name="bght.zt" type="hidden" value="${(bght.zt)!''}"/>
<input name="bghtdyId" type="hidden" value="${(htdyId)!''}"/>
<input id="bght_htbm" type="hidden" value="${(bghtHtbm)!''}"/>
<input id="bght_emwtime" type="hidden" value="${(bghtEmwtime)!''}"/>
<input type="hidden" id="bght_zggsId" value="${(zggsId)!}"/>

<div title="合同信息">
<#if bght??&& bght.sfdrbght=true>
<table id="bght_xx_dr" style="width: 100%" class="tb tab-t t-bor">
    <col width="90px"/>
    <col width=""/>
    <col width="90px"/>
    <col width=""/>
    <col width="90px"/>
    <col width=""/>
    <input type="hidden" name="bght.lj.id" value="${(bght.lj.id)!''}"/>
    <input type="hidden" name="bght.cglx" value="${(bght.cglx)!''}"/>
    <input type="hidden" name="bght.hzf.id"value="${(bght.hzf.id)!''}"/>
    <#--<input type="hidden" name="bght.jsrq"  value="${(bght.jsrq)!''}"/>-->
    <input type="hidden" name="bght.zbbj"  value="${(bght.zbbj)!''}"/>
    <#--<input type="hidden" name="bght.zjhtbz.id"  value="${(bght.zjhtbz.id)!''}"/>-->
    <#--<input type="hidden" name="bght.cgjs.id"  value="${(bght.cgjs.id)!''}"/>-->
    <input type="hidden" name="bght.qdrq"  value="${(bght.qdrq)!''}"/>
    <input type="hidden" name="bght.htqdr"  value="${(bght.htqdr)!''}"/>
    <#--<input type="hidden" name="bght.qddd"  value="${(bght.qddd)!''}"/>-->
    <#--<input type="hidden" name="bght.fkfs.id"  value="${(bght.fkfs.id)!''}"/>-->
    <#--<input type="hidden" name="bght.jhsj"  value="${(bght.jhsj)!}"/>-->
    <#--<input type="hidden" name="bght.jhdd"  value="${(bght.jhdd)!}"/>-->
    <#--<input type="hidden" name="bght.jhfs"  value="${(bght.jhfs)!''}"/>-->
    <input type="hidden" name="bght.sl"  value="${(bght.sl)!''}"/>
    <input type="hidden" name="bght.wlfgs.id"  value="${(bght.wlfgs.id)!''}"/>
    <input type="hidden" name="bght.wlfbm.id"  value="${(bght.wlfbm.id)!''}"/>
    <input type="hidden" name="bght.sbgs.id"  value="${(bght.sbgs.id)!''}"/>
    <input type="hidden" name="bght.sbbm.id"  value="${(bght.sbbm.id)!''}"/>
    <input type="hidden" name="bght.sbr.id"  value="${(bght.sbr.id)!''}"/>
    <input type="hidden" name="bght.bz"  value="${(bght.bz)!''}"/>
    <tr>
        <th>路径名称：</th>
        <td colspan="5">
        ${(bght.lj.mc)!}
        </td>
    </tr>
    <tr>
        <th>合同类型：</th>
        <td>
            保供合同
        </td>
        <th>供应商：</th>
        <td colspan="3">
        ${(bght.hzf.qc)!}
        </td>
    </tr>
    <tr>
        <th>招标比价：</th>
        <td>
            <#if bght.zbbj?? && bght.zbbj==1>比价<#else>招标</#if>
        </td>
        <th>资金合同标志：</th>
        <td><input name="bght.zjhtbz.id" type="text" class="easyui-combobox input-text"
                   data-options="url:'${base}/base/sjzdsy/get_sjzdz?bm=zjhtbz',valueField:'id',textField:'z',panelHeight:'200',lines:'true'"
                   required="true" value="${(bght.zjhtbz.id)!'24591'}"/></td>
        <th>常规寄售：</th>
        <td><input name="bght.cgjs.id" type="text" class="easyui-combobox input-text"
                   data-options="url:'${base}/base/sjzdsy/get_sjzdz?bm=cgjs',valueField:'id',textField:'z',panelHeight:'200',lines:'true'"
                   required="true" value="${(bght.cgjs.id)!'24891'}"/></td>
        <#--<th>资金合同标志：</th>-->
        <#--<td>-->
        <#--${(bght.zjhtbz.z)!''}-->
        <#--</td>-->
        <#--<th>常规寄售：</th>-->
        <#--<td>-->
        <#--${(bght.cgjs.z)!''}-->
        <#--</td>-->
    </tr>
    <tr>
        <th>签订日期：</th>
        <td>
        ${(bght.qdrq?date)!}
        </td>
        <th>签订地点：</th>
        <td colspan="3">
            <input name="bght.qddd" maxlength="50" type="text" style="width: 500px"  class="input-text""  value="${(bght.qddd)!}"/>
        </td>
        <#--<th>签订地点：</th>-->
        <#--<td>-->
        <#--${(bght.qddd)!}-->
        <#--</td>-->
    </tr>
    <tr>
        <th>签&nbsp;订&nbsp;&nbsp;人：</th>
        <td>
        ${(bght.htqdr)!}
        </td>
        <th>结束日期：</th>
        <td>
            <input name="bght.jsrq" class="easyui-datebox input-text" required="true"
                   value="<#if bght??>${(bght.jsrq?date)!}</#if>"/>
        <#--${(bght.jsrq?date)!}-->
        </td>
        <th>付款方式：</th>
        <td>
            <input name="bght.fkfs.id" type="text" value="${(bght.fkfs.id)!}" class="input-text"/>
        </td>
    </tr>
    <tr>
        <th>交货时间：</th>
        <td>
            <input name="bght.jhsj" class="easyui-datebox input-text"
                   value="<#if bght??>${(bght.jhsj?date)!}<#else>${startDate?date}</#if>"/>
        </td>
        <th>交货地点：</th>
        <td>
            <input name="bght.jhdd" maxlength="50" class="input-text" value="${(bght.jhdd)!}"/>
        </td>
        <th>交货方式：</th>
        <td>
            <input name="bght.jhfs" maxlength="50" class="input-text" value="${(bght.jhfs)!}"/>
        </td>
    </tr>
    <#--<tr>-->
        <#--<th>付款方式：</th>-->
        <#--<td>-->
        <#--${(bght.fkfs.z)!''}-->
        <#--</td>-->
        <#--<th>交货时间：</th>-->
        <#--<td colspan="3">-->
        <#--${(bght.jhsj?date)!}-->
        <#--</td>-->
    <#--</tr>-->
    <#--<tr>-->
        <#--<th>交货地点：</th>-->
        <#--<td colspan="3">-->
        <#--${(bght.jhdd)!}-->
        <#--</td>-->
        <#--<th>交货方式：</th>-->
        <#--<td>-->
        <#--${(bght.jhfs)!}-->
        <#--</td>-->
    <#--</tr>-->
    <tr>
        <th>税率(%)：</th>
        <td>
        ${(bght.sl?string(",##0.0000"))!}
        </td>
        <th>采购公司：</th>
        <td>
        ${(bght.wlfgs.jc)!}
        </td>
        <th>采购部门：</th>
        <td>
        ${(bght.wlfbm.qc)!}
        </td>
    </tr>
    <tr>
        <th>申报公司：</th>
        <td>
        ${(bght.sbgs.jc)!}
        </td>
        <th>申报部门：</th>
        <td>
        ${(bght.sbbm.qc)!}
        </td>
        <th>申&nbsp;报&nbsp;&nbsp;人：</th>
        <td>
        ${(bght.sbr.xm)!}
        </td>
    </tr>
    <tr>
        <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
        <td colspan="5">
        ${(bght.bz)!}
        </td>
    </tr>
</table>
<#else>
<table id="bght_xx_xz" style="width: 100%" class="tb tab-t ">
    <col width="90px"/>
    <col width=""/>
    <col width="90px"/>
    <col width=""/>
    <col width="90px"/>
    <col width=""/>
    <tr>
        <th style="color:#f45212;">路&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;径：</th>
        <td colspan="5" style="font-weight: bold">
            <#if bght??>
                <span class="ljtip">${(bght.lj.mc)!}</span>
                <input type="hidden" name="bght.lj.id" value="${(bght.lj.id)!}"/>
            <#else>
                <input id="bght_lj_id" name="bght.lj.id" type="text" value="${(bght.lj.id)!}" class="input-text"
                       style="width: 838px" required="true" missingMessage="路径不能为空！"/>
            </#if>
        </td>
    </tr>
    <tr>
        <th>合同类型：</th>
        <td>
            <input type="hidden" name="bght.cglx" value="bght"/>
            <input type="text" class="input-text" id="bght_cglx_mc" value="保供合同" readonly="readonly"/>
        </td>
        <th>供&nbsp;应&nbsp;&nbsp;商：</th>
        <td colspan="3">
            <input id="bght_hzf_id" name="bght.hzf.id" type="text" value="${(bght.hzf.id)!}" class="input-text"/>
        </td>
    </tr>
    <tr>
        <th>招标比价：</th>
        <td>
            <select class="easyui-combobox input-text" data-options="panelHeight:'200'" name="bght.zbbj">
                <option value="2" <#if bght?? && bght.zbbj==2>selected="selected"</#if>>招标</option>
                <option value="1" <#if bght?? && bght.zbbj==1>selected="selected"</#if>>比价</option>
            </select>
        </td>
        <th>资金合同标志：</th>
        <td><input name="bght.zjhtbz.id" type="text" class="easyui-combobox input-text"
                   data-options="url:'${base}/base/sjzdsy/get_sjzdz?bm=zjhtbz',valueField:'id',textField:'z',panelHeight:'200',lines:'true'"
                   required="true" value="${(bght.zjhtbz.id)!'24591'}"/></td>
        <th>常规寄售：</th>
        <td><input name="bght.cgjs.id" type="text" class="easyui-combobox input-text"
                   data-options="url:'${base}/base/sjzdsy/get_sjzdz?bm=cgjs',valueField:'id',textField:'z',panelHeight:'200',lines:'true'"
                   required="true" value="${(bght.cgjs.id)!'24891'}"/></td>
    </tr>
    <tr>
        <th>签订日期：</th>
        <td>
            <input name="bght.qdrq" class="easyui-datebox input-text"
                   value="<#if bght??>${(bght.qdrq?date)!}<#else>${startDate?date}</#if>"/>
        </td>
        <th>签订地点：</th>
        <td colspan="3">
            <input name="bght.qddd" maxlength="50" type="text" style="width: 500px" class="input-text"" value="${(bght.qddd)!}"/>
        </td>
    </tr>
    <tr>
        <th>签&nbsp;订&nbsp;&nbsp;人：</th>
        <td>
            <input name="bght.htqdr" maxlength="50" type="text" class="input-text""
            value="<#if bght??>${(bght.htqdr)!}<#else>${(yg.xm)!}</#if>"/>
        </td>
        <th>结束日期：</th>
        <td>
            <input name="bght.jsrq" class="easyui-datebox input-text"
                   value="<#if bght??>${(bght.jsrq?date)!}<#else>${startDate?date}</#if>"/>
        </td>
        <th>付款方式：</th>
        <td>
            <input id="bght_fkfs_id" name="bght.fkfs.id" type="text" value="${(bght.fkfs.id)!}" class="input-text"/>
        </td>
    </tr>
    <tr>
        <th>交货时间：</th>
        <td>
            <input name="bght.jhsj" class="easyui-datebox input-text"
                   value="<#if bght??>${(bght.jhsj?date)!}<#else>${startDate?date}</#if>"/>
        </td>
        <th>交货地点：</th>
        <td>
            <input name="bght.jhdd" maxlength="50" class="input-text" value="${(bght.jhdd)!}"/>
        </td>
        <th>交货方式：</th>
        <td>
            <input id="bght_jhfs" name="bght.jhfs" maxlength="50" class="input-text" value="${(bght.jhfs)!}"/>
        </td>
    </tr>
    <tr>
        <th>税&nbsp;率(%)：</th>
        <td>
            <input id="bght_sl" name="bght.sl" class="easyui-combobox input-text" type="text"
                   value="<#if bght??&&bght.sl??>${(bght.sl?string("0.0000"))!}<#else>17.0000</#if>"
                   data-options="precision:4,min:0,max:100"/>
        </td>
        <th>采购公司：</th>
        <td>
            <input id="bght_wlfgs_id" name="bght.wlfgs.id" type="hidden" class="input-text"
                   value="<#if bght??>${(bght.wlfgs.id)!}<#else>${(yg.zggs.id)!}</#if>"/>
            <input id="bght_wlfgs_jc" type="text" class="input-text" readonly="readonly"
                   value="<#if bght??>${(bght.wlfgs.jc)!}<#else>${(yg.zggs.jc)!}</#if>"/>
        </td>
        <th>采购部门：</th>
        <td>
            <input id="bght_wlfbm_id" name="bght.wlfbm.id" type="hidden" class="input-text"
                   value="<#if bght??>${(bght.wlfbm.id)!}<#else>${(yg.zgjg.id)!}</#if>"/>
            <input id="bght_wlfbm_jc" type="text" class="input-text" readonly="readonly"
                   value="<#if bght??>${(bght.wlfbm.qc)!}<#else>${(yg.zgjg.jc)!}</#if>"/>
        </td>
        </td>
    </tr>
    <tr>
        <th>申报公司：</th>
        <td>
            <input id="bght_sbgs_jc" type="text" class="input-text" readonly="true"
                   value="<#if bght??>${(bght.sbgs.jc)!}<#else>${(yg.zggs.jc)!}</#if>"/>
            <input id="bght_sbgs_id" name="bght.sbgs.id"
                   value="<#if bght??>${(bght.sbgs.id)!}<#else>${(yg.zggs.id)!}</#if>" type="hidden"/>
        </td>
        <th>申报部门：</th>
        <td>
            <input id="bght_sbbm_qc" type="text" class="input-text" readonly="true"
                   value="<#if bght??>${(bght.sbbm.qc)!}<#else>${(yg.zgjg.qc)!}</#if>"/>
            <input id="bght_sbbm_id" name="bght.sbbm.id"
                   value="<#if bght??>${(bght.sbbm.id)!}<#else>${(yg.zgjg.id)!}</#if>" type="hidden"/>
        </td>
        <th>申&nbsp;报&nbsp;&nbsp;人：</th>
        <td>
            <input type="hidden" id="bght_sbr_id" name="bght.sbr.id"
                   value="<#if bght??>${(bght.sbr.id)!}<#else>${(yg.id)!}</#if>"/>
            <input id="bght_sbr_xm" type="text" class="input-text" readonly="readonly"
                   value="<#if bght??>${(bght.sbr.xm)!}<#else>${(yg.xm)!}</#if>"/>
        </td>
    </tr>
    <tr>
        <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
        <td colspan="5">
            <textarea name="bght.bz" rows="4" cols="45" class="textarea" style="width: 838px">${(bght.bz)!}</textarea>
        </td>
    </tr>
</table>
</#if>
    <div id="bght-fileQueue" class="fileQueue" style="float: left;margin-left:80px">
        <#if bght??>
            <#list bght.fjList as fj>
                <div id="bght-files${fj.id}" class="uploadify-queue-item">
                    <div class="cancel">
                        <a href="javascript:void(0)" onclick="deleteBghtFile('${fj.id}','bght-files${fj.id}')">X</a>
                    </div>
                    <span class="fileName">${(fj.ccmc)!}</span><span class="data"></span>
                </div>
                <input type="hidden" id="bght-file${fj.id}" name="bght.fjList.id" value="${(fj.id)!}"/>
            </#list>
        </#if>
    </div>
    <div style="float: right;margin: 8px 15px 0 0;">
        <input type="file" name="file" id="bght-uploadify"/>
    </div>
</div>
<div title="合同明细">
<#if bght??&& bght.sfdrbght=true>
    <table id="bght_mx_dr" class="easyui-datagrid" url="${base}/htgl/bghtgl/bghtgl_htmx?bghtId=${(bght.id)!}"
           rownumbers="true" fit="true" fitColumns="true" showFooter="true">
        <thead>
        <tr>
            <th data-options="field:'wzgg.oldcode',width:40">老物资编码</th>
            <#--<th data-options="field:'wzgg.code',width:40">新物资编码</th>-->
            <th data-options="field:'wzgg.name',width:25">物资名称</th>
            <th data-options="field:'wzgg.ggxh',width:30">规格型号</th>
            <th data-options="field:'wzgg.dw',width:15">单位</th>
            <th data-options="field:'cd.z',width:25">产地</th>
        <#--<th data-options="field:'ck',width:20">长宽</th>-->
            <th data-options="field:'sbsl',width:40,formatter:formatSlForHtml">数量</th>
            <th data-options="field:'jzfs.z',width:25">记重方式</th>
            <th data-options="field:'hsj',width:40,formatter:formatSlForHtml">含税价</th>
            <th data-options="field:'bhsj',width:40,formatter:formatSlForHtml">不含税价</th>
            <th data-options="field:'hsje',width:40,formatter:formatSlForHtml">含税金额</th>
            <th data-options="field:'ph',width:15">牌号</th>
            <th data-options="field:'jthsjsl',width:40">交提货时间及数量</th>
        </tr>
        </thead>
    </table>
<#else>
    <div id="bghtgl_bghtmx_toolbar">
        <div class="PTools">
            <ul class="niu">
                <li><a name="xzbghtmx" href="javascript:void(0);" plain="true">新增合同明细</a></li>
                <li><a name="scbghtmx" href="javascript:void(0);" class="del" plain="true">删除合同明细</a></li>
            </ul>
        </div>
    </div>
    <table id="bght_mx"></table>
</#if>
</div>
<div title="付款方式">
    <div id="bght-fkfsedit-toolbar">
        <div class="PTools">
            <ul class="niu">
                <li><a href="javascript:void(0);" id="bght-fkfsedit_tj" plain="true">添加</a></li>
                <li><a href="javascript:void(0);" id="bght-fkfsedit_sc" class="del" plain="true">删除</a></li>
                <li><a href="javascript:void(0);" id="bght-fkfsedit_541" class="rep" plain="true">541</a></li>
            </ul>
        </div>
    </div>
    <table id="bght-fkfsedit"></table>
</div>
<div title="合同文本" style="overflow:hidden">
    <div id="-toolbar">
        <div class="PTools">
            <ul class="niu">
                <li><span class="xuan">选择合同模板：</span>
                    <input id="bght_htmb_id" name="bght_htmb" type="text" class="searchinput-text">
                </li>
                <li><a class="she" href="javascript:void(0);" onclick="checkIsInstall()">检查插件</a></li>
                <li><a class="watch" href="javascript:void(0);"
                       onclick="printPreview('${(bghtHtbm)!}','${(bghtEmwtime)!}')">打印预览</a></li>
                <li><a class="pen" href="javascript:void(0);"
                       onclick="print('${(bghtHtbm)!}','${(bghtEmwtime)!}')">打印</a></li>
                <li><a class="baocun" href="javascript:void(0);" onclick="htwb_save('bght')">保存合同</a></li>
                <li><a class="baocun" href="javascript:void(0);" onclick="htmb_save()">另存为模板</a>
                    <input id="cght_mbname" name="cght_mbname" type="text" class="searchinput-text"/>
                </li>
            </ul>
        </div>
    </div>
    <div style="overflow: auto;height:90%">
        <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
            <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0
                   pluginspage="install_lodop32.exe"></embed>
        </object>
        <div id="htwb_bght_id" class="textcon"></div>
    </div>
</div>
</form>
<#--<div title="采购记录">-->
<#--<table id="bght_cgjl_table_content" class="easyui-datagrid" url="${base}/cggl/cgdgl/cgjlList?cghtId=${(bght.id)!}"-->
<#--rownumbers="true" fit="true" fitColumns="true" pagination="true">-->
<#--<thead>-->
<#--<tr>-->
<#--<th data-options="field:'cgdh',width:60">采购单号</th>-->
<#--<th data-options="field:'fhrq',width:30">发货日期</th>-->
<#--<th data-options="field:'gys_qc',width:60">供应商名称</th>-->
<#--<th data-options="field:'cglx',width:13">采购类型</th>-->
<#--<th data-options="field:'sbgs_qc',width:60">申报公司</th>-->
<#--<th data-options="field:'sbbm_qc',width:25">申报部门</th>-->
<#--<th data-options="field:'sbr_xm',width:10">申报人</th>-->
<#--</tr>-->
<#--</thead>-->
<#--</table>-->
<#--</div>-->
<#--<div title="付款记录">-->
<#--<table id="bght_fkjl_table_content" class="easyui-datagrid" url="${base}/sfgl/fksh/fkshByCghtList?cghtId=${(bght.id)!}"-->
<#--rownumbers="true" fit="true" fitColumns="true" pagination="true">-->
<#--<thead>-->
<#--<tr>-->
<#--<th data-options="field:'bm',width:60">单据号</th>-->
<#--<th data-options="field:'sfklx',width:15">付款类型</th>-->
<#--<th data-options="field:'gldw_jc',width:30">关联企业</th>-->
<#--<th data-options="field:'sfje',width:15,formatter:formatSlForHtml">付款金额</th>-->
<#--<th data-options="field:'kxlx',width:15">款项类型</th>-->
<#--<th data-options="field:'pjlx_z',width:20">票据类型</th>-->
<#--<th data-options="field:'sbgs_jc',width:25">申报公司</th>-->
<#--<th data-options="field:'sbr_xm',width:20">申报人</th>-->
<#--<th data-options="field:'bz',width:15">备注</th>-->
<#--</tr>-->
<#--</thead>-->
<#--</table>-->
<#--</div>-->

<#--<div title="合同文本">-->
<#--<div id="-toolbar">-->
<#--<div class="PTools">-->
<#--<ul class="niu">-->
<#--<li><span class="xuan">选择合同模板：</span>-->
<#--<input id="bght_htmb_id" name="bght_htmb" type="text" class="searchinput-text">-->
<#--</li>-->
<#--<li><a class="she" href="javascript:void(0);" onclick="checkIsInstall()">检查插件</a></li>-->
<#--<li><a class="watch" href="javascript:void(0);" onclick="printPreview()">打印预览</a></li>-->
<#--<li><a class="pen" href="javascript:void(0);" onclick="print()">打印</a></li>-->
<#--<li><a class="baocun" href="javascript:void(0);" onclick="htwb_save('bght')">保存合同</a></li>-->
<#--</ul>-->
<#--</div>-->
<#--<div>-->
<#--<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>-->
<#--<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0-->
<#--pluginspage="install_lodop32.exe"></embed>-->
<#--</object>-->
<#--<div id="htwb_bght_id" class="textcon"></div>-->
<#--</div>-->
<#--</div>-->
<#--</div>-->

